﻿using DevFramework.Entities.ComplexType;
using FluentValidation;

namespace DevFramework.Business.ValidationRules.FluentValidation
{
    public class ShippingDetailValidator : AbstractValidator<ShippingDetail>
    {
        public ShippingDetailValidator()
        {
            RuleFor(t => t.Name).NotEmpty().WithName("Ad Soyad");
            RuleFor(t => t.Address1).NotEmpty().Length(10, 250).WithName("Adres");
        }
    }
}
